home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
dev
/
gcc
/
libnixV1_0.lha
/
gnu
/
libnix-sources.lha
/
sources
/
headers
/
dirent.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-01-22
|
588b
|
34 lines
#include <dos/exall.h>
#include <dos/dosextens.h>
struct dirent {
ULONG d_fileno;
USHORT d_reclen;
USHORT d_namlen;
BYTE d_name[256];
};
typedef struct _dirdesc {
int dd_fd;
struct dirent dd_ent;
BPTR d_lock;
ULONG d_count;
LONG d_more;
struct ExAllControl *d_eac;
struct ExAllData *current;
union {
char ead[2048];
struct FileInfoBlock fib;
} _dirun;
} DIR;
#define d_ead _dirun.ead
#define d_info _dirun.fib
/* prototypes */
DIR *opendir(const char *dirname);
struct dirent *readdir(DIR *dirp);
void rewinddir(DIR *dirp);
int closedir(DIR *dirp);